
<?php $this->pageTitle=Yii::app()->name . ' - Credit history'; ?>
<?php $this->breadcrumbs=array('Add Credit'=>array('napthecao'), 'Credit history');?>

<h1>Credit history</h1>
<div class='m-paging'> <?php $this->widget('MyPage', array('pages' =>$pages)) ;?></div>


<table class='c-table' style="margin:auto; width:95%; border: 1px solid silver;">
<tr>
<th>Date change</th>
<th>Amount</th>
<th style="width:140px;">Content</th>
</tr>
<?php 
foreach($history as $item){?>
<tr>
<td>
	<?php echo CHtml::link(CHtml::encode($item->ngaynap)); ?>
	</td>
<td>

	<?php echo CHtml::encode($item->soluong); ?>
	</td>
	<td>

	<?php echo CHtml::encode($item->hinhthucnap); ?>
	</td>
</tr>
<?php }
?>
</table>
